package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 何星霖
 *
 */
//@RestController
@Controller
public class DemoController {
    @RequestMapping(value = "/helloword")
    public String HelloWord(){
        return "hello world!";
    }
    @RequestMapping("/index")
    public String index(Map<String, Object> map) {
        map.put("name","美丽的天使...");
        return "index";
    }


}
